Encounter

@Serializable
data class Encounter(val minLevel: Int, val maxLevel: Int, val conditionValues: List<Handle.Named<EncounterConditionValue>>, val chance: Int, val method: Handle.Named<EncounterMethod>)(source)

Encounter details for a Pokémon in a specific location area. See: https://pokeapi.co/docs/v2#encounter

Parameters

minLevel

The lowest level the Pokémon could be encountered at.

maxLevel

The highest level the Pokémon could be encountered at.

conditionValues

A list of condition values affecting this encounter.

chance

The chance of the encounter.

method

The method by which the encounter happens.

Constructors

Link copied to clipboard
constructor(minLevel: Int, maxLevel: Int, conditionValues: List<Handle.Named<EncounterConditionValue>>, chance: Int, method: Handle.Named<EncounterMethod>)

Properties

Link copied to clipboard
val chance: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard